package com.ys.entity.purchase;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchasePreStorage", catalog="Id")
public class TcgPurchasePreStorage extends BaseEntity<TcgPurchasePreStorage> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="PurchaseContractBid", nameJava="purchaseContractBid", typeDataBase="varchar")
	private String purchaseContractBid;
	@YsField(nameDataBase="EstimatedArrivalTime", nameJava="estimatedArrivalTime", typeDataBase="char")
	private String estimatedArrivalTime;
	@YsField(nameDataBase="LogisticsMode", nameJava="logisticsMode", typeDataBase="varchar")
	private String logisticsMode;
	@YsField(nameDataBase="TrackingNumber", nameJava="trackingNumber", typeDataBase="varchar")
	private String trackingNumber;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchasePreStorage setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcgPurchasePreStorage setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TcgPurchasePreStorage setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TcgPurchasePreStorage setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcgPurchasePreStorage setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getPurchaseContractBid() {
		return purchaseContractBid;
	}
	public TcgPurchasePreStorage setPurchaseContractBid(String purchaseContractBid) {
		this.purchaseContractBid = purchaseContractBid;
		return this;
	}
	public String getEstimatedArrivalTime() {
		return estimatedArrivalTime;
	}
	public TcgPurchasePreStorage setEstimatedArrivalTime(String estimatedArrivalTime) {
		this.estimatedArrivalTime = estimatedArrivalTime;
		return this;
	}
	public String getLogisticsMode() {
		return logisticsMode;
	}
	public TcgPurchasePreStorage setLogisticsMode(String logisticsMode) {
		this.logisticsMode = logisticsMode;
		return this;
	}
	public String getTrackingNumber() {
		return trackingNumber;
	}
	public TcgPurchasePreStorage setTrackingNumber(String trackingNumber) {
		this.trackingNumber = trackingNumber;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchasePreStorage setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchasePreStorage setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchasePreStorage setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchasePreStorage tcgPurchasePreStorage(
		String bid,
		Long createChangeId,
		Integer effectStock,
		String remark,
		String purchaseContractBid,
		String estimatedArrivalTime,
		String logisticsMode,
		String trackingNumber,
		Integer status
			) {
		TcgPurchasePreStorage entity = new TcgPurchasePreStorage();
		entity.setBid(bid);
		entity.setCreateChangeId(createChangeId);
		entity.setEffectStock(effectStock);
		entity.setRemark(remark);
		entity.setPurchaseContractBid(purchaseContractBid);
		entity.setEstimatedArrivalTime(estimatedArrivalTime);
		entity.setLogisticsMode(logisticsMode);
		entity.setTrackingNumber(trackingNumber);
		entity.setStatus(status);
		return entity;
	}
}